/* Copyright © Worklight Ltd. 2006-2011.  All rights reserved. */

package com.worklight.wlclient.api;


/**
 * A interface that defines methods that a listen for the WLClient invokeProcedure, 
 * to receive notifications about the success or failure of the method call.
 */
public interface WLResponseListener {
	/**
	 * This method will be called if any kind of failure occurred during the execution of a WLClient method. 
	 * @param response
	 */
     public void onSuccess(WLResponse response);
     
     /**
      * This method will be called if any kind of failure occurred during the execution of a WLClient method. 
      * @param response - contains the error code and message, and optionally the results from the server, 
      * along with any incovationContext object and status.
      */
     public void onFailure(WLFailResponse response);
}
